<html><head><title>CreateTerrainBody</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CreateTerrainBody()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>CreateTerrainBody</b></font>(#Terrain, Restitution, Friction)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Adds a static physic body to the terrain. This enable physic objects to collide with the 
terrain. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Terrain</i></td>
<td width="90%"> 
The terrain to use. 

</td></tr>
<tr><td><i>Restitution</i></td>
<td> 
The restitution factor. If set to 0.0, the terrain will not restitute any force, which means than 
the colliding object will not bounce on the terrain. If sets to a value above 0.0, it will 
restitute some force so the colliding object will bounce when colliding to the terrain 
(the higher is the value, the more the bouncing will be). 

</td></tr>
<tr><td><i>Friction</i></td>
<td> 
The friction factor. If set to 0.0, the colliding object will slide on the terrain without 
loosing force. If sets to a value above 0.0, the colliding object will loose speed when 
colliding to the terrain (the higher is the value, the more the speed will decrease). 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>See Also</b></p><blockquote>

<a href="createterrain.html">CreateTerrain()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=createterrain.html>CreateTerrain()</a> - <a href="index.html">Terrain Index</a> - <a href="defineterraintile.html">DefineTerrainTile()</a> -><br><br>

</body></html>